package com.qf.dbUtil.common.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 功能说明
 *
 * @author yihuan
 * @data 2020-10-1311:21:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class R {
    private String code;
    private String msg;
    private Object data;

    public R(ResponseEnum responseEnum){
        this.code=responseEnum.getCode();
        this.msg=responseEnum.getMsg();
    }
    public R(ResponseEnum responseEnum,Object data){
        this.code=responseEnum.getCode();
        this.msg=responseEnum.getMsg();
        this.data=data;
    }
}
